#ifndef PWM_H
#define PWM_H

#include <QObject>
#include "qtimer.h"


class PWM : public QObject
{
    Q_OBJECT
public:
    explicit PWM(QObject *parent = 0);
    void pwm_work_on(int freq);
    void pwm_tweet(int msec);
    void pwm_stop();
    ~PWM();
    void pwm_tweet_till(int s);
    int pwm_fd;
signals:

public slots:
 void timeDone();
 void timeDone2();
 void timeDone3();

private:
    QTimer *timer;
    QTimer *timer2;
    QTimer *timer3;
    bool tweet;
};

#endif // PWM_H
